package com.koala.learn.threadlearn.test2;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Description TODO
 * @Date 2022/3/22 20:47
 * @Created by koala
 */

public class Start2 {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        Kitchen2 kitchen = new Kitchen2(3);
        // 进来二十个厨师
        for (int i = 0; i < 12; i++) {
            executorService.submit(kitchen);
        }
    }
}
